<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/user/common.jsp"%>
<%@ page import="com.bci.pwtz.mysql.model.Dypdx"%>
<%@ page import="com.bci.pwtz.mysql.model.Dydlfjx"%>
<%@ page import="com.bci.pwtz.mysql.model.Dyxl"%>
<%@ page import="com.bci.pwtz.mysql.model.Dykg"%>
<%@page import="com.bci.pwtz.service.DyxlService"%>
<%@page import="com.bci.pwtz.service.DypdxService"%>
<%@page import="com.bci.pwtz.service.DydlfjxService"%>
<%@page import="com.bci.pwtz.service.DykgService"%>
<%@page import="com.bci.pwtz.common.util.PwtzUtils"%>
<%@page import="com.bci.pwtz.service.CompanyUserService"%>
<%
	String dykgid = request.getParameter("deviceid");
	DykgService dykgService = (DykgService)SpringUtil.getBean("dykgService");
	DypdxService dypdxService = (DypdxService)SpringUtil.getBean("dypdxService");
	DydlfjxService dydlfjxService = (DydlfjxService)SpringUtil.getBean("dydlfjxService");
	DyxlService dyxlService = (DyxlService)SpringUtil.getBean("dyxlService");
	CompanyUserService companyUserService = (CompanyUserService)SpringUtil.getBean("companyUserService");
	Dykg dykg = dykgService.load(dykgid);
	Dypdx dypdx = new Dypdx();
	Dydlfjx dydlfjx = new Dydlfjx();
	Dyxl dyxl = new Dyxl();	
	String dbyqtype="";
	String byqname="";
	if(dykg != null){
		if(dykg.getStationdevicetype()==16){
			dypdx = dypdxService.load(dykg.getStationcode());
			if(dypdx != null){
				dyxl = dyxlService.load(dypdx.getLinecode());
				if(dyxl!=null){
				    if(dyxl.getDevicetype()==1){
				        dbyqtype="pdbyq";
				        byqname="配电变压器";
				    }else{
				        dbyqtype="zsbyq";
				        byqname="柱上变压器";
				    }
				}
			}
		}else if(dykg.getStationdevicetype()==17){
			dydlfjx = dydlfjxService.load(dykg.getStationcode());
			if(dydlfjx != null){
				dyxl = dyxlService.load(dydlfjx.getLinecode());
				if(dyxl!=null){
				    if(dyxl.getDevicetype()==1){
				        dbyqtype="pdbyq";
				        byqname="配电变压器";
				    }else{
				        dbyqtype="zsbyq";
				        byqname="柱上变压器";
				    }
				}
			}
		}
	}
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>配网数据-系统主页</title>
<link href="<%=basePath %>user/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%=basePath %>user/css/llcss.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="<%=basePath %>js/jquery/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="<%=basePath %>user/js/hd_ll.js"></script>
<script type="text/javascript" src="<%=basePath %>user/js/common.js"></script>
<%-- <script type="text/javascript" src="<%=basePath %>user/d/js/pdbyqlist.js"></script> --%>
</head>
<script type="text/javascript">
</script>
<body bgcolor="white">
	<%@ include file="/user/head.jsp"%>
	<div class="pwsj_cont_box">
	<%@ include file="/user/left.jsp"%>
	<!-- 右侧内容_begin -->
	<%if(dykg != null && dyxl!=null){ %>
	<div class="pwsj_cont_right_box" scroll="no">
		<!-- 配电变压箱_begin -->
		<div class="pwsj_right_byq" scroll="no">
		<div class="pwsj_right_byq_position">
			<a class="position" href="<%=basePath %>user/m/index.jsp">配网数据</a>&gt;
			<a class="position" href="<%=basePath %>user/d/<%=dbyqtype %>list.jsp %>"><%=byqname %></a>&gt;
			<a class="position" href="<%=basePath %>user/d/dyxllist.jsp?deviceid=<%=dyxl.getTransformercode() %>&devicetype=<%=dyxl.getDevicetype() %>">低压线路</a>&gt;
			<%if(dykg.getStationdevicetype()==16){ %>
				<a class="position" href="<%=basePath %>user/d/dypdxlist.jsp?deviceid=<%=dyxl.getDeviceid() %>">低压配电箱</a>&gt;
			<%}else if(dykg.getStationdevicetype()==17){ %>
				<a class="position" href="<%=basePath %>user/d/dydlfjxlist.jsp?deviceid=<%=dyxl.getDeviceid() %>">低压电缆分接箱</a>&gt;
			<%} %>
			<a class="position">低压开关详情</a>
			<a class="right" href="<%=basePath %>user/d/dykglist.jsp?deviceid=<%=dykg.getStationcode() %>&devicetype=<%=dykg.getStationdevicetype() %>&t=<%=System.currentTimeMillis() %>">返回</a>
		</div>
			<!-- 运行参数_begin -->
			<div class="argument_box">
				<!-- 参数标题-begin -->
				<div class="argument_title">
					<p class="title">运行参数</p>
					<a  class="show"></a>
					<div class="clear"></div>
				</div>
				<!-- 参数标题-end -->
				<!-- 参数内容_begin -->
				<div class="argument_cont_box">
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>设备名称：</span><%=PwtzUtils.validateNull(dykg.getDevicename())%></li>
						<li class="argument_cont_li"><span>设备编号：</span><%=PwtzUtils.validateNull(dykg.getDevicenumber())%></li>
						<li class="argument_cont_li"><span>所属站房类型：</span>
						<%if(dykg.getStationdevicetype()==16){ %>
						低压配电箱
						<%} %>
						<%if(dykg.getStationdevicetype()==17){ %>
						低压电缆分接箱
						<%} %>
						</li>							
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>所属站房名称：</span>
						<%if(dykg.getStationdevicetype()==16){ %>
						<%=PwtzUtils.validateNull(dypdx.getDevicename())%>
						<%} %>
						<%if(dykg.getStationdevicetype()==17){ %>
						<%=PwtzUtils.validateNull(dydlfjx.getDevicename())%>
						<%} %>
						</li>
						<li class="argument_cont_li"><span>所属线路名称：</span><%=PwtzUtils.validateNull(dyxl.getDevicename())%></li>
						<li class="argument_cont_li"><span>所属地市：</span><%=PwtzUtils.validateNull(dykg.getLocalcity())%></li>	
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>运维单位：</span><%=PwtzUtils.validateNull(dykg.getOperationunit())%></li>
						<li class="argument_cont_li"><span>维护班组：</span><%=PwtzUtils.validateNull(dykg.getMaintenanceteam())%></li>
						<li class="argument_cont_li"><span>所属盘柜：</span><%=PwtzUtils.validateNull(dykg.getDiskcabinet())%></li>
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>电压等级：</span><%=PwtzUtils.validateNull(dykg.getVoltagelevel())%></li>
						<li class="argument_cont_li"><span>投运日期：</span><%=PwtzUtils.validateNull(dykg.getCommissioningdate())%></li>
						<li class="argument_cont_li"><span>设备状态：</span><%=PwtzUtils.validateNull(dykg.getEquipmentstate())%></li>
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>运行状态：</span><%=PwtzUtils.validateNull(dykg.getOperationstate())%></li>
						<li class="argument_cont_li"><span>开合状态：</span><%=PwtzUtils.validateNull(dykg.getOpenstate())%></li>
						<li class="argument_cont_li"><span>设备主人：</span><%=PwtzUtils.validateNull(dykg.getEquipmentowner())%></li>
						<div class="clear"></div>
					</ul>
				</div>
				<!-- 参数内容_end -->
			</div>
			<!-- 运行参数_end -->

			<!-- 物理参数_begin -->
			<div class="argument_box">
				<!-- 参数标题-begin -->
				<div class="argument_title">
					<p class="title">物理参数</p>
					<a  class="show"></a>
					<div class="clear"></div>
				</div>				
				<!-- 参数标题-end -->
				<!-- 参数内容_begin -->
				<div class="argument_cont_box">
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>型号：</span><%=PwtzUtils.validateNull(dykg.getModel())%></li>
						<li class="argument_cont_li"><span>生产厂家：</span><%=PwtzUtils.validateNull(dykg.getProductionfactory())%></li>
						<li class="argument_cont_li"><span>出厂编号：</span><%=PwtzUtils.validateNull(dykg.getSerialnumber())%></li>							
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>出厂日期：</span><%=PwtzUtils.validateNull(dykg.getFactorydate())%></li>
						<li class="argument_cont_li"><span>额定电压：</span><%=PwtzUtils.validateNull(dykg.getRatedvoltage())%></li>
						<li class="argument_cont_li"><span>额定电流：</span><%=PwtzUtils.validateNull(dykg.getRatedcurrent())%></li>	
						<div class="clear"></div>
					</ul>
					
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>灭弧介质：</span><%=PwtzUtils.validateNull(dykg.getExtinguishingmedium())%></li>
						<div class="clear"></div>
					</ul>			
				</div>
				<!-- 参数内容_end -->
			</div>
			<!-- 物理参数_end -->
			
			<!-- 管理信息_begin -->
			<div class="argument_box">
				<div class="argument_title">
					<p class="title">管理信息</p>
					<a  class="show"></a>
					<div class="clear"></div>
				</div>				
				<!-- 参数标题-end -->
				<!-- 参数内容_begin -->
				<div class="argument_cont_box">
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>创建人：</span><%=(companyUserService.load(dykg.getCreateid())).getLoginName()%></li>
						<li class="argument_cont_li"><span>创建时间：</span><%=PwtzUtils.date2String(dykg.getCreatedate(),"yyyy-MM-dd HH:mm:ss")%></li>
						<li class="argument_cont_li"><span>最后修改时间：</span><%=PwtzUtils.date2String(dykg.getLastmodifiedtime(),"yyyy-MM-dd HH:mm:ss")%></li>							
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>最后操作人：</span><%=(companyUserService.load(dykg.getLastoperatorid())).getLoginName()%></li>
						<div class="clear"></div>
					</ul>					
				</div>
			</div>
			<!-- 管理信息_end -->
		</div>	
		<!-- 配电变压箱_end -->		
	</div>
	<!-- 右侧内容_end -->
	<%} %>
	<div class="clear"></div><!-- 清除左右浮动 -->

	</div>
	<!--main end-->
<%@ include file="/user/foot.jsp"%>
</body>
</html>